gdtmod_aircraft_viewdistance 1.01
by HeinBloed
http://www.gdt-server.net/
===========================

This Addon changes the viewdistance in aircrafts for pilot and gunner.

On the pilot and gunner position the viewdistance changes to your favored value.
On the pilot and gunner position the viewdistance can be changed by a menu.
Disembarking the aircraft will switch back to the missions default viewdistance.

This Addon is client side only.

Required:
Armed Assault 2 v1.04
Extended Eventhandlers (XEH) which is part of CBA: Community Base Addons (http://dev-heaven.net/wiki/cca)

===========================

Installation:

gdtmod_aircraft_viewdistance.pbo:										Into a mod folder of your choice. For Example: ..\Your_ArmA_2_Folder\YourModFolder\AddOns\
gdtmod_aircraft_viewdistance.pbo.gdtmod_aircraft_viewdistance.bisign:	Into the same folder like gdtmod_hdr.pbo.
gdtmod_aircraft_viewdistance.hpp:										Into ..\Your_ArmA_2_Folder\userconfig\gdtmod_aircraft_viewdistance\
gdtmod_aircraft_viewdistance.bikey:										For Servers only.
Start ArmA 2 with -mod=YourModFolder

===========================

In Game:
[END] or Actionmenu "Aircraft Viewdistance": Opens the menu.

===========================

Configuration:

There are to variants to use the menu.
	1. Via Key:
		This variant does not work with addons which are using the old displaySetEventHandler command. It also does not work with the Editor Modules "Construction Interface" (Used by missions such as Superpowers) and "High Command" witch are using the displaySetEventHandler command as well.
	2. Via actionmenu:
		There are not any known issues by using the actionmenu.

Edit gdtmod_aircraft_viewdistance.hpp:

>	Choose your favored viewdistance for aircrafts:
	_viewdistance = 5000; (Up to 10000) 

>	Choose how to start the menu:
	_menu = 0; (0 = Start menu via Key, 1 = Start menu via Actionmenu)

>	You can choose between every Key of your choice to start the menu.
	_key = 207; (Change 207 to your key number)
	
	How to find your key number:
	Must be _menu = 0; (0 = Start menu via Key).
	1. Change _help = 0; to _help = 1;
	2. Start the game, place a player in the editor and start preview.
	3. By pressing any key you will see the key number of the pressed key.
	4. Press your favoured key.	Notice your key number.
	5. Change _key = 207; to your key number.
	6. Change _help = 1; to _help = 0;

Changelog 1.01
- Parachutes excluded.
